package com.example.lx6_8.attend

import androidx.paging.PagingData
import com.example.base.aa.entity.AttendEntityItem
import com.example.base.aa.mvvm.BaseViewModel
import com.example.base.aa.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

@HiltViewModel
class AttendViewModel @Inject constructor(val apiService: ApiService) : BaseViewModel() {

    fun getAttend() : Flow<PagingData<AttendEntityItem>>{
        return httpFlow { AttendSource(apiService) }
    }

}